<?

 $conexao = ibase_connect("127.0.0.1:c:/tuto/tutorial.gdb","SYSDBA","masterkey");
 $sql = "select * from cadastro";
 $r = ibase_query($conexao, $sql);

?>


<html>
<title>Mostrar</title>

<body>

<table width="96%" border="1">
  <tr>
    <td width="46%"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>C&oacute;digo</strong></font></td>
    <td width="54%"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Descricao</strong></font></td>
  </tr>
</table>


<table width="96%" border="1">

<? while($row = ibase_fetch_object($r)) { ?>

  <tr>
    <td width="46%"><? print $row->CODIGO; ?></td>
    <td width="54%"><? print $row->DESCRICAO; ?></td>
  </tr>
  
<? }

ibase_close($conexao);

?>
  
</table>

</body>

</html>














